| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | const assert = require('assert'); |
||
| 9 | /* global describe, it */ |
||
| 10 | |||
| 11 | describe('GeezConverterTest', () => { |
||
| 12 | describe('#test_geez_converter()', () => { |
||
| 13 | it('should convert ascii number to geez', () => { |
||
| 14 | TestCase.geezNumberTestDataProvider().forEach(([$number, $geez_number]) => { |
||
| 15 | const $result = geezConverter.convert($number); |
||
| 16 | assert.equal($geez_number, $result); |
||
| 17 | }); |
||
| 18 | }); |
||
| 19 | }); |
||
| 20 | |||
| 21 | describe('#test_invalid_number_throw_exception()', () => { |
||
| 22 | it('should throws NotAnIntegerArgumentException', () => { |
||
| 23 | TestCase.invalidNumberDataProvider().forEach(($number) => { |
||
| 24 | assert.throws(() => { |
||
| 25 | geezConverter.convert($number); |
||
| 26 | }, NotAnIntegerArgumentException); |
||
| 27 | }); |
||
| 28 | }); |
||
| 29 | }); |
||
| 30 | }); |
||
| 31 |